@echo off
set PORT=20000
for /f "tokens=5" %%a in ('netstat -ano ^| findstr ":%PORT%"') do (
    taskkill /F /PID %%a
    goto GET_INI
)
:GET_INI
TITLE jwm-%PORT%
java  -jar jwm-1.0-SNAPSHOT.jar --server.port=%PORT% --spring.config.location=application.yml